﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace XSTDZ.ERP.Application.DataContracts
{
    [Serializable]
    public class WorkGroupDto
    {
        public Guid? Id { get; set; }
        [Display(Name = "组名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string GroupName { get; set; }
        //[Display(Name = "组员ID")]
        //[Required(ErrorMessage = "{0}不能为空！")]
        //public Guid UserID { get; set; }
        [Display(Name = "是否组长")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public int IsHeadman { get; set; }
        [Display(Name = "删除状态")]
        public int Deleted { get; set; }
        [Display(Name = "备注")]
        public string Remarks { get; set; }
        [Display(Name = "组员姓名")]
        public System.Guid UserID { get; set; }
        
        public string Name { get; set; }

        public string DeletedState { get; set; }//只是为了方便页面读取
        public string Headman { get; set; }//只是为了方便页面读取
    }
}
